package com.core.model.lxf;

/**
 * Created with IntelliJ IDEA.
 * User: xianfei
 * Date: 15-12-25
 * Time: 下午2:41
 * To change this template use File | Settings | File Templates.
 */
public class Parent {

    private static String parentText;

    static {
        System.out.println("parent 静态块");
        System.out.println("parent 静态块后：" + parentText);
        parentText = "parent";
    }

    public Parent() {
        System.out.println("parent 构造器");
        System.out.println("parent 构造器后：" + parentText);
        parentMethod();
    }

    public void parentMethod() {
        System.out.println("parent 方法");
        System.out.println("parent 方法后：" + parentText);
    }

}
